
let objstr='{"username":"zs","password":123}'

console.log( JSON.parse(  objstr )   );
// { username: 'zs', password: 123 }



let obj={
    "name":"zs",
    "password":123
}

console.log( JSON.stringify(obj) );
// '{"name":"zs", "password":123}'